package com.example.administrator.myapplication.myself;

import android.content.Context;
import android.content.Intent;

import com.example.administrator.myapplication.activity.anchorSecondActivity.AnchorSecondActivity;

/**
 * Created by Administrator on 2017.5.10.
 */

public class SqliteEntity {
    private String name;
    private String img;
   private  String uid ;

    public SqliteEntity(String name, String img, String uid) {
        this.name = name;
        this.img = img;
        this.uid = uid;
    }
  public void onClickItem(Context context){
      Intent intent = new Intent(context,AnchorSecondActivity.class);
      intent.putExtra("uid",uid);
      context.startActivity(intent);
  }
    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    @Override
    public String toString() {
        return "SqliteEntity{" +
                "name='" + name + '\'' +
                ", img='" + img + '\'' +
                ", uid='" + uid + '\'' +
                '}';
    }
}
